#include<iostream>
#include<string>
#include<cmath>
#include<stack>
using namespace std;

stack<int> myc;

int main(){
    string s1,s2;
    cin>>s1>>s2;
    int length1=s1.size();
    int length2=s2.size();
    int lowd=abs(length1-length2);
    int temp=0;
    int now=0;
    if(lowd!=0){
        if(length1>length2){
            s2.insert(0,lowd,'0');
        }else{
            s1.insert(0,lowd,'0');
        }
    }
    lowd=s1.size();

    for(int i=lowd-1;i>=0;i--){
        now=s1[i]-'0'+s2[i]-'0'+temp;
        if(now>=10){
            temp=now/10;
        }else{
            temp=0;
        }
        now=now%10;
        myc.push(now);
    }
    if(temp!=0){
        myc.push(temp);
    }

    while(!myc.empty()){
        cout<<myc.top();
        myc.pop();
    }


    return 0;
}
